package demo.springboot;

import org.apache.rocketmq.common.message.MessageExt;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

import demo.hello.User;

@Component
@RocketMQMessageListener(topic = "TopicTest5", consumerGroup = "Con_Group_One5")
public class RocketMQListener6 implements RocketMQListener<MessageExt> {

    public void onMessage(MessageExt msgExt) {
    	byte[] body = msgExt.getBody();
    	System.out.println(new String(body));
    }

}
